<template>
  <slot name="header"></slot>
</template>
<script>
import { getCurrentInstance, onMounted } from 'vue';
export default {
  setup() {
    const instance = getCurrentInstance();

    onMounted(() => {
      if (instance.slots.header) {
        console.log('Header slot is present');
      } else {
        console.log('Header slot is not present')
      }
    })
  }
}
</script>
<style lang="">

</style>